package com.mewp.permissions.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mewp.permissions.model.po.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mewp
 * @description 针对表【sys_menu(菜单表)】的数据库操作Mapper
 * @createDate 2023-07-28 12:12:56
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据用户id查询菜单列表
     *
     * @param userId 用户id
     * @return 菜单列表
     */
    List<SysMenu> findListByUserId(@Param("userId") Long userId);
}




